<?php 

	class CommonController extends Smarty
	{

		public function __construct()
		{
			parent::__construct();
			//实例化对象
			//$this->s = new Smarty;
			//初始化
			$this->template_dir = './View';
			$this->compile_dir = './View_c';

		}

		/**
		*	成功的方法
		*/
		public function success($info,$url,$second)
		{
			

		
			//分配变量
			$this->assign('title','添加成功的页面');
			$this->assign('info',$info);
			$this->assign('url',$url);
			$this->assign('sec',$second);

			//解析模板
			$this->display('system/success.html');
		}

	}


